package cn.iocoder.mall.admin.service.impl;

import cn.iocoder.mall.admin.entity.SysParams;
import cn.iocoder.mall.admin.mapper.SysParamsMapper;
import cn.iocoder.mall.admin.service.ISysParamsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/***
 *@author yinxucun
 *@date 2019-11-01 10:50 
 */
@Service
public class SysParamsServiceImpl  extends ServiceImpl<SysParamsMapper, SysParams> implements ISysParamsService {

    @Resource
    private SysParamsMapper sysParamsMapper;

    @Override
    public boolean updateBatchByName(List<SysParams> params) {
        for (SysParams sysParams:params) {
            sysParamsMapper.updateByName(sysParams);
        }
        return true;
    }


}
